package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fourth.vo.BrandVo;
import com.ljx.entity.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author xiaoZhu
 * @version 1.0
 * @date 2023/2/27 22:46
 */
@Mapper
public interface BrandDao extends BaseMapper<Brand> {
    @Select("select b.*,s.sortname from g_brand b join g_sort s on b.sortid=s.id ")
    List<Brand> selectAll();

    List<Brand> selectAll1(BrandVo brandVo);
}
